#ifndef _COM_HAL_H_
#define	_COM_HAL_H_

#include "mytype.h"
#include "stdint.h"
#include "com_def.h"

#ifdef   _COM_HAL_MODULE_
#define  COM_EXT
#else
#define  COM_EXT  extern
#endif      


COM_EXT com_obj_type  com_obj;;

void com_init(uint32_t ulBaudRate, com_parity_type eParity, uint8_t mode);

void com_send_string(char * pData);
void com_send_dat( uint8_t * pData, uint16_t Len);


#undef COM_EXT

#endif	/* _COM_HAL_H_ */

